using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using DAOLayer;
using DTO;

namespace BUSLayer
{
    public class LoaiPhongBus
    {
        public static DataTable LayDanhSachLoaiPhong()
        {
            //Kiem tra Business Rule neu co
            DataTable dt = new DataTable();
            dt = LoaiPhongDao.LayDanhSachLoaiPhong();
            return dt;
        }
        public static LoaiPhongDto LayMotLoaiPhong(int ma)
        {
            LoaiPhongDto lphong = new LoaiPhongDto();
            lphong = LoaiPhongDao.LayMotLoaiPhong(ma);
            return lphong;
        }
        public static void Them(LoaiPhongDto lp)
        {
            LoaiPhongDao.Them(lp);
        }
        public static void CapNhatXuongCSDL(LoaiPhongDto p)
        {
            LoaiPhongDao.CapNhatXuongCSDL(p);
        }
        public static void Xoa(int MaLPhong)
        {
            LoaiPhongDao.Xoa(MaLPhong);
        }
    }
}
